#include "pagemaintmenu.h"
#include "ui_pagemaintmenu.h"

PageMaintMenu::PageMaintMenu(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::PageMaintMenu)
{
    ui->setupUi(this);
    setAutoFillBackground(true);  //设置自动填充
    QPalette palette = BKGCLR;
    setPalette(palette);
}

PageMaintMenu::~PageMaintMenu()
{
    delete ui;
}

void PageMaintMenu::on_Btn_Maint_Network_pressed()
{
    signal_show_maint_page(Page_Maint_Network);
}

void PageMaintMenu::on_Btn_Maint_Version_pressed()
{
    signal_show_maint_page(Page_Maint_Version);
}

void PageMaintMenu::on_Btn_Maint_Interface_pressed()
{
    signal_show_maint_page(Page_Maint_Interface);
}

void PageMaintMenu::on_Btn_Maint_LCUSwitch_pressed()
{
    signal_show_maint_page(Page_Maint_LCUBoardSet);
}

void PageMaintMenu::on_Btn_Maint_TotalData_clicked()
{
    signal_show_maint_page(Page_Maint_Accumulation);
}

void PageMaintMenu::on_Btn_PisAuto_7_clicked()
{
    signal_show_maint_page(Page_Maint_SpeedTest);
}

void PageMaintMenu::on_Btn_TimeSet_clicked()
{
    signal_show_maint_page(Page_Maint_TimeSet);
}

void PageMaintMenu::on_Btn_WheelSet_clicked()
{
    signal_show_maint_page(Page_Maint_WheelSet);
}

void PageMaintMenu::on_Btn_PwdSet_clicked()
{
    signal_show_maint_page(Page_Maint_PasswordSet);
}

void PageMaintMenu::on_Btn_TrainNumSet_clicked()
{
    signal_show_maint_page(Page_Maint_TrainNumSet);
}

void PageMaintMenu::on_Btn_Keycbs_clicked()
{
    signal_show_maint_page(Page_Maint_KeyCBStat);
}

void PageMaintMenu::on_Btn_ManualSelfTest_clicked()
{
    signal_show_maint_page(Page_Maint_ManualSelfTest);
}

void PageMaintMenu::on_Btn_Maint_CleanBrk_clicked()
{
    signal_show_maint_page(Page_Maint_CleanBrk);
}

void PageMaintMenu::on_Btn_DorparSet_clicked()
{
    signal_show_maint_page(Page_Maint_DorParSet);
}

void PageMaintMenu::on_Btn_switchStatus_clicked()
{
    signal_show_maint_page(Page_Maint_Switch);
}

void PageMaintMenu::on_Btn_battery_clicked()
{
    signal_show_maint_page(Page_Maint_Battery);
}

void PageMaintMenu::on_Btn_HardWareStat_clicked()
{
    signal_show_maint_page(Page_Maint_Hardware);
}

void PageMaintMenu::on_Btn_PISCBTest_clicked()
{
    signal_show_maint_page(Page_Maint_PISBreakerTest);
}

void PageMaintMenu::on_Btn_OtherTest_clicked()
{
    signal_show_maint_page(Page_Maint_OtherTest);
}
